﻿{extend name="public:layer_new_page_base"}
{block name="content"}
<!-- /.aside -->
<section id="content">
    <section class="vbox">
        <section class="scrollable padder">
            {include file="public:mylocal" /}
            <section class="panel panel-default">
                {include file="public:table_form_header" /}
                <div class="panel-body">
                    <form id="ajaxform_close" class="form-horizontal" method="post">

                

                        <div class="form-group" >
                            <label class="col-sm-2 control-label">友链名称</label>
                            <div class="col-sm-10">
                                <input type="text" name="link_name" maxlength="255" class="form-control"  placeholder=" 必填" value="{$that.link_name}">
                            </div>
                        </div>

                        <div class="form-group" >
                            <label class="col-sm-2 control-label">友链地址</label>
                            <div class="col-sm-10">
                              <input type="text" name="link_url" data-type="url" class="form-control parsley-validated" placeholder="必填" value="{$that.link_url}">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">缩略图</label>
                            <div class="col-sm-3">
                                <input type="file" accept="image/*"  class="filestyle" name="link_img"  data-icon="false" data-classButton="btn btn-default" data-classInput="form-control inline input-s">
                            </div>
                            <div class="col-sm-3">
                                {notempty name="that.link_img"}
                                <a href="{$that.link_img}" target="_blank" style="text-decoration: underline;color: #89cc97;line-height: 30px;">* 点击查看已上传图片</a>
                                {else /}
                                <a  style="text-decoration: underline;color: #89cc97;line-height: 30px;">（暂未上传）</a>
                                {/notempty}
                            </div>
                        </div>

                        <div class="line line-dashed line-lg pull-in"></div>
                        <div class="form-group" >
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-10">
                                <input type="number" value="50" name="sort" maxlength="2" class="form-control" required placeholder=" 1 - 100间的整数，数值越小越靠前" value="{$that.sort}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否显示</label>
                            <div class="col-sm-10">
                                <label class="switch">
                                    <input type="checkbox" value="1"  name="is_show" {eq name="that.is_show" value="1"} checked {/eq}>
                                    <span></span> 
                                </label>
                            </div>
                        </div>

                        <div class="line line-dashed line-lg pull-in"></div>

                       
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <input type="hidden" name="id" readonly required value="{$that.id}">
                                <button type="reset"  class="btn btn-default" style="padding:6px 12px;font-size: 14px;">重 置</button>
                                <button type="submit" class="btn btn-primary" style="padding:6px 12px;font-size: 14px;">保 存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </section>
    </section>
</section>
            

{/block}
{/extend}
